﻿namespace Sidvall.AuthorizationManager.Test.Configuration
{
    public class ApplicationSettings : Sidvall.Configuration.SettingsBase
    {
        #region Public Members

        #region GetSetting

        public override object GetSetting(string propertyName)
        {
            string tmp;

            if (Properties.Settings.Default.PropertyValues.Count == 0)
                tmp = Properties.Settings.Default.ApplicationTitle;
            var propertyValue = Properties.Settings.Default.PropertyValues[propertyName];
            if (propertyValue != null)
                return propertyValue.PropertyValue;
            return null;
        }

        #endregion
        #region ToString

        public override string ToString()
        {
            return "ApplicationSettings - Sidvall.AuthorizationManager.Test";
        }

        #endregion

        #endregion
    }
}
